package com.woniu.command.purchasedetailcommand;

import com.woniu.command.Command;
import com.woniu.command.handle.PurchaseDetailCommandHandle;
import com.woniu.outlet.po.PurchaseDetailPo;
import com.woniu.uitl.ApplicationContextHolder;

public class UpdatePurchaseDetailCommand implements Command<PurchaseDetailPo,String> {

    private PurchaseDetailCommandHandle handle;

    public UpdatePurchaseDetailCommand() {
        this.handle = ApplicationContextHolder.getApplicationContext().getBean(PurchaseDetailCommandHandle.class);
    }

    @Override
    public String excute(PurchaseDetailPo detailPo) {
        String msg = handle.updatePurDetail(detailPo);
        return msg;
    }
}
